package com.atguigu.springcloud.controller;

import com.atguigu.springcloud.service.impl.MessageProviderImpl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: shikong
 * @Date: 2020/8/7 11:01
 */

@RestController
public class SendMessageController {

    @Resource
    private MessageProviderImpl messageProviderImpl;

    @GetMapping("/sendMsg")
    public String sendMsg(){

        messageProviderImpl.sendMsg();
        return "ok";
    }




}
